<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Domain extends Model
{
	use HasDateTimeFormatter; 
	
	
	public function scopeShow($query){
		return $query->where('state',1);
	}


	public function scopeEnter($query){
		return $query->where('type',2);
	}

	public function scopeBorn($query){
		return $query->where('type',1);
	}
}
